<?php
class Video extends AppModel{
	public $belongsTo = array('Author','Course');
	public $validate = array(
		'title'   => array(
			'isUnique'	=> array(
				'rule'      => 'isUnique',
				'message'   => 'El titulo ya existe'
			),
			'notEmpty'	=> array(
				'rule'      => 'notEmpty',
				'message'   => 'El campo no puede estar vacio'
			)
        )
	);
}
?>